package cn.groupmarket.test.logicLink.model2.node;

import cn.groupmarket.api.response.Response;
import cn.groupmarket.test.logicLink.model2.factory.Rule02TradeRuleFactory;
import cn.groupmarket.types.design.framework.link.model2.handler.ILogicHandler;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class Node01 implements ILogicHandler<String, Rule02TradeRuleFactory.DynamicContext, Response<String>> {
    @Override
    public Response<String> apply(String requestParameter, Rule02TradeRuleFactory.DynamicContext dynamicContext) throws Exception {
        log.info("年龄为");
        dynamicContext.setAge(requestParameter);
        return next(requestParameter, dynamicContext);
    }
}
